﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orgInfo.aspx.cs" Inherits="pro_org_orgInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div >
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                SelectCommand="SELECT organization.organizationid, organization.creator, organization.organizationname, organization.address, organization.postcode, organization.phone, organization.createdtime, organization.contactperson, organization.contactemail, organization.description, users.realname FROM organization INNER JOIN users ON organization.organizationid = users.organizationid WHERE (organization.organizationid = @organizationid)">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                        Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
                CellPadding="3" DataKeyNames="organizationid" DataSourceID="SqlDataSource1" 
                GridLines="Horizontal" Height="50px" Width="100%">
                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                <Fields>
                    <asp:BoundField DataField="realname" HeaderText="创建者：" 
                        SortExpression="realname">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="organizationname" HeaderText="组织名称：" 
                        SortExpression="organizationname">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="address" HeaderText="组织地址：" SortExpression="address">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="postcode" HeaderText="组织邮编：" 
                        SortExpression="postcode">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="phone" HeaderText="电话：" SortExpression="phone">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="createdtime" HeaderText="创建时间：" 
                        SortExpression="createdtime">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="contactperson" HeaderText="联系人：" 
                        SortExpression="contactperson">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="contactemail" HeaderText="联系人Email：" 
                        SortExpression="contactemail">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="description" HeaderText="描述：" 
                        SortExpression="description">
                        <HeaderStyle HorizontalAlign="Right" Width="120px" />
                    </asp:BoundField>
                </Fields>
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                <AlternatingRowStyle BackColor="#F7F7F7" />
            </asp:DetailsView>
        </div>
    </div>
    </form>
</body>
</html>
